﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DigitalImage.softLib.stages {
    class CCTBbinaryTiles : IColorToBinary {
        private int x;
        private int y;

        public CCTBbinaryTiles(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public CCTBbinaryTiles() {
            this.x = 15;
            this.y = 15;
        }

        public byte[,] transform(System.Drawing.Bitmap inputImage) {
            byte[,] slika = CImageUtil.bitmapToByteMatrix(inputImage);
            return CImageUtil.matrixToBinaryTiles(slika, x, y);
        }
    }
}
